package com.greenx.hello.booleant;

public class HelloBoolean {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		testBoolean();
		testCompare();
	}

	private static void t3() {
		Boolean b = null;
		System.out.println(" b" + b);
		System.out.println(" b" + (!b));
	}

	private static void testBoolean() {
		System.out.println(" true:" + (true == ((Boolean) Boolean.TRUE)));
		boolean f1 = true;
		boolean f2 = true;
		boolean f3 = false;
		boolean resulte = f1 && (!f2 && !f3);

		System.out.println(" the value of resulte is :" + resulte);
	}

	private static void testCompare() {
		boolean b = false;
		if (b = true) {
			System.out.println(" the value of b is :" + b);
		}

	}

}
